package org.csmzxy.class2333;

import java.util.ArrayList;
import java.util.Iterator;

public class Example03 {
    public static void main(String [] args){
        ArrayList list = new ArrayList();
        list.add("张三");
        list.add("李四");
        list.add("王五");
        list.add("赵六");
        Iterator iterator = list.iterator();
        System.out.println("会员列表如下：");
        while (iterator.hasNext()){
            Object obj = iterator.next();
            System.out.println(obj);
        }
    }
}
